import request from '@/utils/request'

//查询设备分类列表
export function listType(query){
    return request({
        url:'/device/deviceType/list',
        method: 'get',
        params: query
    })
}

//获取设备类别列表
export function getTypeList(){
    return request({
        url: '/device/deviceType/getList',
        method: 'get'
    });
}

//查询设备分类详情
export function getType(id){
    return request({
        url: '/device/deviceType/getInfo/' + id,
        method: 'get'
    })
}

//新增设备分类
export function addType(data){
    return request({
        url: '/device/deviceType/add',
        method: 'post',
        data: data
    })
}

//修改设备分类
export function editType(data){
    return request({
        url: '/device/deviceType/edit',
        method: 'put',
        data: data
    })
}

//删除设备分类
export function delType(id){
    return request({
        url: '/device/deviceType/remove/' + id,
        method: 'delete'
    })
}